time and distance problems